﻿namespace Ndns.ServerHost.Abstractions.Services
{
    public interface ILoggerProvider
    {
        ILogger GetLogger(string componentName);
    }

    public static class LoggerProviderExtensions
    {
        public static ILogger GetLogger<T>(this ILoggerProvider provider)
        {
            return provider.GetLogger(typeof(T).FullName);
        }
    }
}
